package cc.mrbird.febs.payment.service;

import cc.mrbird.febs.payment.entity.PaymentInfo;
import cc.mrbird.febs.payment.entity.RefundInfo;

import cc.mrbird.febs.common.entity.QueryRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 退款记录 Service接口
 *
 * @author Mr.Yang
 * @date 2022-08-12 09:32:44
 */
public interface IRefundInfoService extends IService<RefundInfo> {
    /**
     * 查询（分页）
     *
     * @param request QueryRequest
     * @param refundInfo refundInfo
     * @return IPage<RefundInfo>
     */
    IPage<RefundInfo> findRefundInfos(QueryRequest request, RefundInfo refundInfo);

    /**
     * 查询（所有）
     *
     * @param refundInfo refundInfo
     * @return List<RefundInfo>
     */
    List<RefundInfo> findRefundInfos(RefundInfo refundInfo);

    /**
     * 新增
     *
     * @param refundInfo refundInfo
     */
    void createRefundInfo(RefundInfo refundInfo);

    /**
     * 修改
     *
     * @param refundInfo refundInfo
     */
    void updateRefundInfo(RefundInfo refundInfo);

    /**
     * 删除
     *
     * @param refundInfo refundInfo
     */
    void deleteRefundInfo(RefundInfo refundInfo);



    RefundInfo updateRefundContent(String orderSn, String content, String tradeState);


}
